import Vue from 'vue'
import Vuex from 'vuex'
//引入左侧菜单子树
import app from './modules/app';
import user from './modules/user';
import lang from './modules/lang';
//引入 getters
import getters from "./getters";
//引入持久化插件
import createPersistedState from 'vuex-persistedstate';
Vue.use(Vuex)

export default new Vuex.Store({
    state: {},
    mutations: {},
    actions: {},
    plugins:[createPersistedState()],
    getters,
    modules: {
        app,
        user,
        lang,
    }
})
